package com.yunfeng.aolin.service;

import java.util.List;

import org.springframework.data.jpa.domain.Specification;

import com.yunfeng.aolin.entity.Customer;
import com.yunfeng.common.util.Page;

public interface CustomerService {
	Customer get(Long id);

	void saveOrUpdate(Customer customer);

	void delete(Long id);

	List<Customer> findAll();

	List<Customer> findAll(Page page);

	List<Customer> findByName(Page page, String name);

	List<Customer> findByExample(Specification<Customer> specification,
			Page page);
}
